/*
 * GameSelectView.h
 *
 *  Created on: 01/06/2014
 *      Author: javier
 */

#ifndef GAMESELECTVIEW_H_
#define GAMESELECTVIEW_H_

#include "Properties.h"
#include "SDLWindow.h"
#include "Match.h"
#include <list>
#include <vector>

class BZPView;

class GameSelectView {
public:
	GameSelectView(BZPView* view, SDLWindow* window);
	void handleClick(int x, int y);
	void render();
	void loadCampaigns(std::string campaigns);
	void loadMatchs(std::string strCampaigns);
	void showCampaigns();
	void showMatchs();
	virtual ~GameSelectView();
private:
	bool showCampaign;
	BZPView* view;
	SDLWindow* window;
	SDL_Texture *texture;
	SDL_Rect geometry;
	Properties properties;
	std::vector<Match*> campaigns;
	std::vector<Match*> partidas;
	SDL_Texture *notFound;
	std::map<std::string, SDL_Texture *> textures;
};

#endif /* GAMESELECTVIEW_H_ */
